ComponentOne Data Source for Entity Framework
C1.LiveLinq.Indexing.Search Namespace / IIndexScanner<T,TKey> Interface / Join Method / Join<T2,TResult>(IEnumerable<T2>,Func<T2,TKey>,Func<T,T2,TResult>,JoinOperator) Method
The type of the elements of the second sequence.
The type of the result elements.
The second sequence to join to this collection.
A function to extract from an item of the second sequence the value to match against this collection's key value.
A function to create a result element from two matching elements.
A comparison operator to match elements.

In This Topic
    Join<T2,TResult>(IEnumerable<T2>,Func<T2,TKey>,Func<T,T2,TResult>,JoinOperator) Method
    In This Topic
    Correlates the items of this indexed collection with the items of another sequence and returns the combined items with matching keys.
    Syntax
    'Declaration
     
    
    Overloads Function Join
        (Of T2,TResult)( _
       ByVal source As System.Collections.Generic.IEnumerable(Of T2), _
       ByVal keySelector As System.Func(Of T2,TKey), _
       ByVal resultSelector As System.Func(Of T,T2,TResult), _
       ByVal op As JoinOperator _
    ) As System.Collections.Generic.IEnumerable(Of TResult)
    System.Collections.Generic.IEnumerable<TResult> Join<T2,TResult>( 
       System.Collections.Generic.IEnumerable<T2> source,
       System.Func<T2,TKey> keySelector,
       System.Func<T,T2,TResult> resultSelector,
       JoinOperator op
    )

    Parameters

    source
    The second sequence to join to this collection.
    keySelector
    A function to extract from an item of the second sequence the value to match against this collection's key value.
    resultSelector
    A function to create a result element from two matching elements.
    op
    A comparison operator to match elements.

    Type Parameters

    T2
    The type of the elements of the second sequence.
    TResult
    The type of the result elements.

    Return Value

    Enumeration of objects obtained by applying the result selector to pairs of joined elements of the two collections.
    See Also